<?php
namespace App\Traits;

use App\Models\FakeList;

Trait Trait36 {

    public function doorLogForAMan()
    {
        $data1 = [
            'name' => '张啊',
            '部门' => 'A部门',
            '授权' => '临时授权',
            '方式' => '人脸识别'
        ];

        $data2 = [
            '2019-08' => [
                '12' => [['type' => '刷脸开门', 'time' => "13:55"],['type' => '刷脸开门', 'time' => "11:55"],['type' => '刷脸开门', 'time' => "10:55"],['type' => '刷脸开门', 'time' => "09:55"]],
                '13' => [['type' => '刷脸开门', 'time' => "13:55"],['type' => '刷脸开门', 'time' => "11:55"],['type' => '刷脸开门', 'time' => "10:55"],['type' => '刷脸开门', 'time' => "09:55"]],
                '14' => [['type' => '刷脸开门', 'time' => "13:55"],['type' => '刷脸开门', 'time' => "11:55"],['type' => '刷脸开门', 'time' => "10:55"],['type' => '刷脸开门', 'time' => "09:55"]]
            ]
        ];
        $data = [
            'manInfo' => $data1,
            'list' => $data2
        ];
        $responseJson = [
            'code' => 200,
            'message' => '',
            'data' => $data
        ];
        return response()->json($responseJson);
    }
}
